const http = require('node:http');
const url = require('node:url');
const server = http.createServer((req, res) => {
    let urlName=http.url;
    let pathUrl
});

// Create a local server to receive data from
// const server = http.createServer((req, res) => {
//   res.writeHead(200, { 'Content-Type': 'application/json' });
//   res.end(JSON.stringify({
//     data: 'Hello World!',
//   }));
// });
//监听8000的请求
server.listen(8000);